
$( "#${renderTo!""}" ).simpleTabs({
	tabIds:_simple_tabIds_${UUID!""},
	collapsible:${collapsible?string("true","false")},
	beforeLoad: function( event, ui ) {
		<#if href??>
		
		
		ui.jqXHR.error(function() {
			ui.panel.html(
				"Couldn't load this tab. We'll try to fix this as soon as possible. " +
				"If this wouldn't be a demo." );
		});
		</#if>
				
	}
}).delegate( "span.ui-icon-close", "click", function() {
			var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
			$( "#" + panelId ).remove();
			$( this ).parent().parent().parent().simpleTabs( "refresh" );
})
<#if sortable??&&sortable>
.find( ".ui-tabs-nav" ).sortable({
			axis: "x",
			stop: function() {
				$( this ).parent().simpleTabs( "refresh" );
			}
})
</#if>
;